<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var reg = /go*gle/;
			var str5 = "goooooooogle";
			var result5 = str5.match(reg);
			console.log(result5);
//			var reg = /wo?rld/;
//			var str6 = 'wrld';
//			var result6 = str6.match(reg);
//			console.log(result6);
//			var reg = /gx*gle/;
//			var str5 = "gxxxxle";
//			var result5 = str5.match(reg);
//			console.log(result5);
			var reg = /.*/g;
			var str4 = "&%$#@_\n87gvgh";
			var result4 = str4.match(reg);
			console.log(result4);
			var reg = /[a-z]+/i;
			var str5 = "helloBEIJING";
			var result5 = str5.match(reg);
			console.log(result5);
			var reg = /\d+/g;
			var str6 = '2019/09/01';
			var result6 = str6.match(reg);
			console.log(result6);
			var reg = /\bis\b/g;
			var str7 = "this is a bread";
			var newstr = str7.replace(reg,"was");
			var result7 = str7.match(reg);
			console.log(newstr);
			console.log(result7);
			var reg = /\Bis\b/g;
			var str11 = "hi is this a book";
			var newwstr = str11.replace(reg,"at");
			var result11 = str11.match(reg);
			console.log(newwstr);
			console.log(result11);
			var reg = /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/;
			var reg = /(\d{1,3}\.){3}\d{1,3}/;
			var str8 = '255.255.4.255';
			var result8 = str8.match(reg);
			console.log(result8);
			
		</script>
	</head>
	<body>
	</body>
</html>
